package game;

public class User implements Comparable<User> {
	String username;
	long time;
	
	public User(String username, long time) {
		this.username = username;
		this.time = time;
	}

	@Override
	public String toString() {
		return username + " " + time;
	}

	@Override
	public int compareTo(User o) {
		if (time < o.time) {
			return -1;
		} else if (time == o.time) {
			return 0;
		} else {
			return 1;
		}
	}
	
	
	
	
}
